import sqlite3
from pymongo import MongoClient
conn = sqlite3.connect("db.sqlite")
cur = conn.cursor()
#cur.execute("DELETE FROM domains");
#cur.execute("INSERT INTO domains VALUES(null, 1, 'test1.abc', 0)")
#cur.execute("SELECT * FROM domains");
#cur.execute("UPDATE domains SET ip_id=2");
cur.execute("SELECT * FROM domains WHERE id=1")
id, ip_id, name, priority = cur.fetchone()
print(id, ip_id, name, priority);
exit();
for row in cur:
    print(row)
conn.commit()
#TODO data - ?